import request from '@/utils/request'

// 查询Comuser列表
export function listComhome(query) {
  return request({
    url: '/truth/comhome/list',
    method: 'get',
    params: query
  })
}

// 查询Comuser详细
export function getComhome(comUserid) {
  return request({
    url: '/truth/comhome/' + comUserid,
    method: 'get'
  })
}

// 新增Comuser
export function addComhome(data) {
  return request({
    url: '/truth/comhome',
    method: 'post',
    data: data
  })
}

// 修改Comuser
export function updateComhome(data) {
  return request({
    url: '/truth/comhome',
    method: 'put',
    data: data
  })
}

// 删除Comuser
export function delComhome(comUserid) {
  return request({
    url: '/truth/comhome/' + comUserid,
    method: 'delete'
  })
}
